#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "mapwindow.h"
#include <TileSheet.h>
#include <NewBox.h>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void Init() {
      //  m_window->show();

        //m_window->Init();
    }

protected:
    void keyPressEvent(QKeyEvent* e)
    {
        if(e->key() == Qt::Key_Escape)
            close();
    }

private slots:
    void Load();
    void Save();
    void New();
    void SaveDS() { m_window->SaveDS("map"); }
    void LoadTile();
    void SetActiveLayer1();
    void SetActiveLayer2();
    void SetActiveLayer3();
    void SetActiveLayer4();

    void Check1(bool);
    void Check2(bool);
    void Check3(bool);
    void Check4(bool);
private:
    MapWindow * m_window;
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
